package com.framework.network.annotations

import okhttp3.Request
import retrofit2.Invocation
import java.lang.reflect.Method

/**
 * 获取网络接口请求的所有注解
 */
fun getRetrofitMethod(request: Request): Method? {
    return request.tag(Invocation::class.java)?.method() ?: return null
}